package com.walter.learn.UseThread.ThreadDemo_readTest;

import com.walter.learn.ReadAndWrite.Read;
import com.walter.learn.ReadAndWrite.Write;

import java.util.List;

/**
 * @ProjectName: learnOwner
 * @Package: com.walter.learn.UseThread.ThreadDemo_readTest
 * @ClassName: Main
 * @Description: java类作用描述
 * @Author: 唐朝
 * @CreateDate: 2019/2/19 10:26
 * @UpdateUser: 更新者
 * @UpdateDate: 2019/2/19 10:26
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
public class Main {
    public static void main(String[] args) {
        Common common=new Common();
        //执行读线程
        new ReadThread(common).run();
        //执行转换写线程
        new TranslatorThread(common).run();

       /* System.out.println(System.currentTimeMillis());
        List<String> list = Read.readByInputStreamReader("G:\\TestData\\threadRead.txt");
        for(int i=0;i<list.size();i++){
            Write.writeByFileOutputStream(list.get(i).toLowerCase()+"\r\n","G:\\TestData\\threadDemo1.txt");
        }
        System.out.println(System.currentTimeMillis());*/
    }

}


